package com.example.demo.service.impl;

import com.example.demo.mapper.OpenMapper;
import com.example.demo.service.LoginService;
import com.example.demo.utils.HttpGetUtils;
import org.springframework.beans.factory.annotation.Autowired;

public class LoginImpl implements LoginService {

    @Override
    public boolean login(String code) {
        HttpGetUtils httpGetUtils=new HttpGetUtils();
        String openid=httpGetUtils.doget(code);
        if(openid!=null){

            return true;
        }else {
            return false;
        }

    }

}
